﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Login page</title>
    <script type="text/javascript" >

        function loginCheck() {

            if (document.getElementById('uid').value.length == 0)

                alert("UserId can't be blank");

            else if (document.getElementById('pwd').value.length == 0)

                alert("Password can't be blank");

            else {

                alert("successfully logged in");
            }

        }
</script>
</head>
<body>
UserId : <input type="text" id="uid"/>
<br/>

Password: <input type="password" id="pwd"/>
<br /><br/>

<input type ="button" onclick="loginCheck()" value ="LogIn"/>

</body>
</html>
